<template>
  <div class="fangke-table">
    <div class="fangke-table-head">
      <div style="margin-right:10px;"><my-select :items="kefuItems" ph="全部客服"></my-select></div>
      <div style="margin-right:10px;"><my-select :items="sourceItems" ph="全部来源"></my-select></div>
      <div style="margin-right:10px;"><my-select :items="terminalItems" ph="全部终端"></my-select></div>
      <div style="margin-right:10px;"><my-date width="300"></my-date></div>
      <div style="margin-right:10px;"><my-search ph="请输入关键词搜索" width="276"></my-search></div>
      <div style="margin-left:45px;"><el-button plain>导出数据</el-button></div>
    </div>
    <div class="fangke-table-base-table">
      <base-table :mydata="mydata" :mytitle="mytitle" type='fk'></base-table>
      <div class="pages">
        <el-pagination
          :page-sizes="[10, 20, 30, 40]"
          :page-size="10"
          layout="total, prev, pager, next, sizes, jumper"
          :total="400"
        >
        </el-pagination>
      </div>
    </div>
  </div>
</template>

<script>
import BaseTable from '@/components/MyTable/BaseTable.vue'
import MyDate from "@/components/MyInput/MyDate";
import MySelect from "@/components/MyInput/MySelect";
import MySearch from "@/components/MyInput/MySearch";
export default {
  props: ["mydata", "mytitle", "kefuItems", "sourceItems", "terminalItems"],
  components:{
    BaseTable,
    MyDate,
    MySelect,
    MySearch,
  },
  created() {
    console.log(this.mytitle);
  },
  data() {
    return {
    };
  },
  methods: {
  },
};
</script>

<style>
.fangke-table{
  height: 100%;
}

.fangke-table-head {
  display: flex;
  margin: 10px 0 20px;
}

.fangke-table-head .el-select {
  width: 160px;
}

.pages{
  float: right;
  padding: 10px 0 0;
}
</style>